package com.yf.notify.modules.notify.dto;

import com.yf.base.api.annon.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;

/**
* <p>
* 系统消息数据传输类
* </p>
*
* @author 聪明笨狗
* @since 2022-11-08 10:54
*/
@Data
@ApiModel(value="系统消息", description="系统消息")
public class MsgDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "ID", required=true)
    private String id;

    @ApiModelProperty(value = "消息模板ID", required=true)
    private String tmplId;

    @ApiModelProperty(value = "消息标题", required=true)
    private String title;

    @ApiModelProperty(value = "消息内容", required=true)
    private String content;

    @ApiModelProperty(value = "发送时间", required=true)
    private Date createTime;

    @ApiModelProperty(value = "发送人", required=true)
    private String createBy;

    @ApiModelProperty(value = "all所有人person指定人", required=true)
    private String receiver;

    @Dict(dicCode = "msg_type")
    @ApiModelProperty(value = "消息类型1站内信2手机短信3社交媒体4电子邮件", required=true)
    private Integer msgType;
    private String msgType_dictText;

    @Dict(dicCode = "msg_state")
    @ApiModelProperty(value = "发送状态0发送中,1已发送,2发送失败")
    private String sendState;
    private String sendState_dictText;

    @ApiModelProperty(value = "发送时间")
    private Date sendTime;

    @ApiModelProperty(value = "错误信息")
    private String result;

    @ApiModelProperty(value = "链接类型", required=true)
    private String linkType;

    @ApiModelProperty(value = "引用ID", required=true)
    private String linkId;
    
}
